package cn.tedu.boyou.comment.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@Document("sight_review")
@ToString
public class SightReview implements Serializable{
    @Id
    private String id;//文档id

    private Long sightId;//关联景点的id
    private Long travelId;//关联游记id
    private String travelTitle;//关联游记副标题
    private Long userId;//用户id
    private String username;//用户的名字
    private String headUrl;//用户的头像
    private int level;//用户的等级

    private int totalStarNum;//总评分的星星数
    private int sightStarNum;//风光星星数
    private int featureStarNum;//特色星星数
    private int serverStarNum;//服务星星数
    private String reviewContent;//评论内容
    private String reviewPicUrls;//评论的图片

    private Date createTime;//点评的创建时间
    private int thumbNum;//评论的点赞数
    private ArrayList<Long> userIds = new ArrayList<>();//评论的用户id集合

    private List<ReviewComment> rcs = new ArrayList<>();//关联的回复列表

}
